<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>阳光外卖-商家信息</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <script src="/web/static/wxapp/mui.js"></script>
    <link href="/web/static/wxapp/mui.css" rel="stylesheet"/>
</head>
<style>
	*{
		padding:0;
		margin:0;
	}
	body{
		background:#fff;
	}
</style>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td height="80" colspan="2" align="center"><img src="{$data.headimg}" width="55"/></td>
    </tr>
    <tr>
      <td height="50" colspan="2" align="center" valign="top" style="font-size:13px;">
      <div>{$data.name}</div>
      <div>￥{$data.min_express_charge} 起送 <span style="color:#d4d4d4">/</span> 配送费约￥2</div>
      </td>
    </tr>
    <tr>
    	<td height="10" colspan="2"></td>
    </tr>
    {if $data.new_user_reduction}
    <tr>
      <td height="30" colspan="2" align="left" style="font-size:15px">　新用户下单立减{$data.new_user_reduction}元</td>
    </tr>
    {/if}
    <tr>
      <td height="30" colspan="2" align="left" style="font-size:15px">　{$data.money_off}</td>
    </tr>
    <tr>
      <td height="40" colspan="2" align="center" bgcolor="#F0F0F0" style="font-size: 14px; color: #5B5B5B;">----- 热销商品 -----</td>
    </tr>
    <tr>
      <td height="10" colspan="2"></td>
    </tr>
    <tr>
      <td width="50%" height="180" align="center" valign="top" style="font-size:15px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td height="200" align="center"><img src="{$data.goods.0.image1}" width="100%" height="100%" alt=""/></td>
          </tr>
          <tr>
            <td height="30">　{$data.goods.0.title}</td>
          </tr>
          <tr>
            <td style="color:red">　￥{$data.goods.0.price}</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </tbody>
      </table>
      </td>
      <td width="50%" height="180" align="center" valign="top" style="font-size:15px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td height="200" align="center"><img src="{$data.goods.1.image1}" width="100%" height="100%" alt=""/></td>
          </tr>
          <tr>
            <td height="30">　{$data.goods.1.title}</td>
          </tr>
          <tr>
            <td style="color:red">　￥{$data.goods.1.price}</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </tbody>
      </table></td>
  </tr>
  <tr>
  <td colspan="2">　
  	<a class="mui-btn" style="width:170px; background:#09f;color:#fff;border-color:#09f" onClick="download_()">下载APP享受更多优惠</a>
  </td>
  </tbody>
</table>
<script src="/web/static/public/js/jquery.js"></script>
<script>
	function download_(){
		 //下载app
		var u = navigator.userAgent;
		var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
		var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
		if(isAndroid){
			//跳转安卓下载
			location.href = '';
		}else if(isiOS){
			//跳转苹果下载
			location.href = '';
		}
	}
</script>
</body>
</html>